package org.dromara.tearoom.domain.bo;

import org.dromara.tearoom.domain.TerAccounts;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.time.LocalDateTime;

/**
 * 账户业务对象 ter_accounts
 *
 * @author xch
 * @date 2025-05-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TerAccounts.class, reverseConvertGenerate = false)
public class TerAccountsBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 会员id
     */
    private Long memberId;

    /**
     * 余额
     */
    private Integer balance;

    /**
     * 积分
     */
    private Integer integral;

    /**
     * 是否可用
     */
    private Integer type;

    private String openId;
    private String start;
    private String end;

    private Integer giftAmount;
    private String orderId;
}
